﻿<Page
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:HelloWorldApp.Views"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:prism="using:Microsoft.Practices.Prism.StoreApps"
    xmlns:mvvm="using:Microsoft.Practices.Prism.Mvvm"
    xmlns:ViewModels="using:HelloWorldApp.ViewModels"
    x:Class="HelloWorldApp.Views.MainPage"
    mc:Ignorable="d"
    mvvm:ViewModelLocator.AutoWireViewModel="True" 
    d:DataContext="{d:DesignInstance ViewModels:MainPageViewModel, IsDesignTimeCreatable=True}">
    <Page.BottomAppBar>
        <CommandBar IsOpen="True" IsSticky="True">
            <AppBarButton Icon="Accept" Label="挨拶" Command="{Binding GreetCommand, Mode=OneWay}"/>
        </CommandBar>
    </Page.BottomAppBar>

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <TextBlock TextWrapping="Wrap" Text="Hello world" Style="{StaticResource HeaderTextBlockStyle}" Margin="10"/>
        <StackPanel Grid.Row="1">
            <TextBlock TextWrapping="Wrap" Text="{Binding Message}" Margin="10,0" Style="{StaticResource BodyTextBlockStyle}"/>
        </StackPanel>

    </Grid>
</Page>
